﻿using System;
using PrismicIOAPI.Web.Common.UI;
using PrismicIOAPI.Web.UI;

namespace PrismicIOAPI.Usage.Example.aspx
{
    public partial class test2 : PrismicPage
    {
        protected override void BindControls()
        {
            PageDocumentList = null;
            DataSource = String.Format( PrismicQuery.SEARCH_BY_TYPE , "test2" );
            if( PageDocumentList == null || PageDocumentList.Count == 0 )
            {
                return;
            }
            int i, sz;
            sz = PageDocumentList.Count;
            if( sz > 0 )
            {
                prismic.Api.Document singleDocument = PageDocumentList[ 0 ];
            }
        }
    }
}